package com.moonshineproject.plugin.settings.vo
{
	import com.moonshineproject.plugin.settings.renderers.MultiOptionRenderer;
	
	import mx.core.IVisualElement;

	public class MultiOptionSetting extends StringSetting
	{
		
		private var _options:Vector.<NameValuePair>
		private var _value:Object
		public function MultiOptionSetting(provider:Object, name:String, label:String,options:Vector.<NameValuePair>)
		{
			super(provider,name,label);
			_options = options;
			value = defaultValue = stringValue;
			
		}
		
		public function get value():Object{
			return getSetting();
		}
		public function set value(v:Object):void{
			setPendingSetting(v);			
		}
		
		override public function get renderer():IVisualElement
		{
			
			var rdr:MultiOptionRenderer = new MultiOptionRenderer();
			rdr.options = _options;
			rdr.setting = this;			
			return rdr;
		}
	}
}